package thread.demo.vector;

import java.util.Vector;
import java.util.concurrent.ConcurrentMap;

public class VectorTest001 {
  public static void main(String[] args) {
    Vector<Integer> list = new Vector<>();
    
    
    list.addElement(1);
    list.addElement(2);
    list.addElement(3);
    
    list.remove(1);
    
    for (Integer element : list) {
      System.out.println(element);
    }
    
    System.out.println("-----");
    
    list.set(2, 10);
    for (Integer element : list) {
      System.out.println(element);
    }
    
    list.removeAllElements();
    
    System.out.println("-----");
    for (Integer element : list) {
      System.out.println(element);
    }
  }
}
